#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>

#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

#define DEBUG 0
#define NOISY_TEST 1

int checkhandCard(int handPos, struct gameState *state);

int checkhandCard(int handPos, struct gameState *state){

    int t = state->whoseTurn;
    int c = state->hand[t][handPos];
    int r = handCard(handPos, state);

    assert (c == r);

    return 0;
}

int main(){

    int i;
    int n;
    int handPos;

    struct gameState g;

    printf ("Testing handCard.\n");

    g.whoseTurn = floor(Random() * MAX_PLAYERS);
    handPos = floor(Random() * 5);

    checkhandCard(handPos, &g);

    printf ("handCard OK \n");

    return 0;
}